import request from '@/utils/request'

// 查询消课订单列表
export function listXkOrder(query) {
  return request({
    url: '/order/xkOrder/list/1/10',
    method: 'get',
    params: query
  })
}

export function getStudentHoursByClassStudentTable(classId){
  return request({
    url: '/order/xkOrder/getStudentHours',
    method: 'get',
    params: {
      classId
    }
  })
}

export function getTeacher(){
  return request({
    url:"/order/xkOrder/getTeacherList",
    method:"get"
  })
}

// 查询消课订单详细
export function getXkOrder(xkId) {
  return request({
    url: '/order/xkOrder/' + xkId,
    method: 'get'
  })
}

// 新增消课订单
export function addXkOrder(data) {
  return request({
    url: '/order/xkOrder',
    method: 'post',
    data: data
  })
}

// 修改消课订单
export function updateXkOrder(data) {
  return request({
    url: '/order/xkOrder',
    method: 'put',
    data: data
  })
}

// 删除消课订单
export function delXkOrder(xkId) {
  return request({
    url: '/order/xkOrder/' + xkId,
    method: 'delete'
  })
}

// 导出消课订单
export function exportXkOrder(query) {
  return request({
    url: '/order/xkOrder/export',
    method: 'get',
    params: query
  })
}
